const form = [{
    key: 'pz',
    label: '品种',
    labelWidth: 80,
    required: false,
    placeholder: '请填写'
}, {
    key: 'dh',
    label: '代号',
    labelWidth: 80,
    required: false,
    placeholder: '请填写'
}, {
    key: 'mslb',
    label: '泌水率比%',
    validatorNumber:true,
    labelWidth: 160,
    required: false,
    placeholder: '请填写'
},{
    key: 'jsbhl1',
    label: '1h经时变化量（坍落度）',
    validatorNumber:true,
    labelWidth: 220,
    required: true,
    placeholder: '请填写'
}, {
    key: 'jsbhl2',
    label: '2h经时变化量（坍落度）',
    validatorNumber:true,
    labelWidth: 220,
    required: true,
    placeholder: '请填写'
}, {
    key: 'esbtsslb',
    label: '28天收缩率比%',
    validatorNumber:true,
    labelWidth: 160,
    required: false,
    placeholder: '请填写'
},{
    key: 'xdnjx',
    label: '相对耐久性（200次）（%）',
    validatorNumber:true,
    labelWidth: 220,
    required: false,
    placeholder: '请填写'
}, {
    key: 'jsl',
    label: '减水率%',
    validatorNumber:true,
    labelWidth: 80,
    required: true,
    placeholder: '请填写'
}, {
    key: 'hql',
    label: '含气量%',
    validatorNumber:true,
    labelWidth: 80,
    required: false,
    placeholder: '请填写'
},{
    key: 'njsjzccn',
    label: '凝结时间之差/min（初凝）',
    validatorNumber:true,
    labelWidth: 220,
    required: false,
    placeholder: '请填写'
},{
    key: 'njsjzczn',
    label: '凝结时间之差/min（终凝）',
    validatorNumber:true,
    labelWidth: 220,
    required: false,
    placeholder: '请填写'
},{
    key: 'kyqdb1',
    label: '1d抗压强度比%',
    validatorNumber:true,
    labelWidth: 200,
    required: false,
    placeholder: '请填写'
},{
    key: 'kyqdb3',
    label: '3d抗压强度比%',
    validatorNumber:true,
    labelWidth: 200,
    required: false,
    placeholder: '请填写'
},{
    key: 'kyqdb7',
    label: '7d抗压强度比%',
    validatorNumber:true,
    labelWidth: 200,
    required: false,
    placeholder: '请填写'
},{
    key: 'kyqdb28',
    label: '28d抗压强度比%',
    validatorNumber:true,
    labelWidth: 200,
    required: false,
    placeholder: '请填写'
},{
    key: 'r7_kyqdb_5',
    label: 'R-7抗压强度比%（-5℃）',
    validatorNumber:true,
    labelWidth: 200,
    required: false,
    placeholder: '请填写'
},{
    key: 'r28_kyqdb_5',
    label: 'R28抗压强度比%（-5℃）',
    validatorNumber:true,
    labelWidth: 200,
    required: false,
    placeholder: '请填写'
},{
    key: 'r7_28_kyqdb_5',
    label: 'R-7+28抗压强度比%（-5℃）',
    validatorNumber:true,
    labelWidth: 200,
    required: false,
    placeholder: '请填写'
},{
    key: 'r7_56_kyqdb_5',
    label: 'R-7+56抗压强度比%（-5℃）',
    validatorNumber:true,
    labelWidth: 200,
    required: false,
    placeholder: '请填写'
},{
    key: 'r7_kyqdb_10',
    label: 'R-7抗压强度比%（-10℃）',
    validatorNumber:true,
    labelWidth: 200,
    required: false,
    placeholder: '请填写'
},{
    key: 'r28_kyqdb_10',
    label: 'R28抗压强度比%（-10℃）',
    validatorNumber:true,
    labelWidth: 200,
    required: false,
    placeholder: '请填写'
},{
    key: 'r7_28_kyqdb_10',
    label: 'R-7+28抗压强度比%（-10℃）',
    validatorNumber:true,
    labelWidth: 220,
    required: false,
    placeholder: '请填写'
},{
    key: 'r7_56_kyqdb_10',
    label: 'R-7+56抗压强度比%（-10℃）',
    validatorNumber:true,
    labelWidth: 220,
    required: false,
    placeholder: '请填写'
},{
    key: 'r7_kyqdb_15',
    label: 'R-7抗压强度比%（-15℃）',
    validatorNumber:true,
    labelWidth: 200,
    required: false,
    placeholder: '请填写'
},{
    key: 'r28_kyqdb_15',
    label: 'R28抗压强度比%（-15℃）',
    validatorNumber:true,
    labelWidth: 200,
    required: false,
    placeholder: '请填写'
},{
    key: 'r7_28_kyqdb_15',
    label: 'R-7+28抗压强度比%（-15℃）',
    validatorNumber:true,
    labelWidth: 220,
    required: false,
    placeholder: '请填写'
},{
    key: 'r7_56_kyqdb_15',
    label: 'R-7+56抗压强度比%（-15℃）',
    validatorNumber:true,
    labelWidth: 220,
    required: false,
    placeholder: '请填写'
},{
    key: 'llzhl',
    label: '氯离子含量',
    validatorNumber:true,
    labelWidth: 110,
    required: false,
    placeholder: '请填写'
},{
    key: 'zjl',
    label: '总碱量',
    validatorNumber:true,
    labelWidth: 80,
    required: false,
    placeholder: '请填写'
},{
    key: 'hgl',
    label: '含固量',
    validatorNumber:true,
    labelWidth: 80,
    required: true,
    placeholder: '请填写'
},{
    key: 'hsl',
    label: '含水率',
    validatorNumber:true,
    labelWidth: 80,
    required: false,
    placeholder: '请填写'
},{
    key: 'md',
    label: '密度（g/cm3）',
    validatorNumber:true,
    labelWidth: 150,
    required: false,
    placeholder: '请填写'
},{
    key: 'xd',
    label: '细度',
    labelWidth: 80,
    required: false,
    placeholder: '请填写'
},{
    key: 'ph',
    label: 'PH值',
    labelWidth: 80,
    validatorNumber:true,
    required: false,
    placeholder: '请填写'
},{
    key: 'lsnhl',
    label: '硫酸钠含量（%）',
    validatorNumber:true,
    labelWidth: 160,
    required: false,
    placeholder: '请填写'
},{
    key: 'zxbz',
    label: '执行标准',
    labelWidth: 80,
    required: true,
    placeholder: '请填写'
}]


const requiredArr = []
const notRequiredArr = []

let tempArr = []
form.forEach(item => {
    if(item.required) {
        tempArr.push(item)
    }else {
        notRequiredArr.push(item)
    }
    if( tempArr.length >= 2 ) {
        requiredArr.push(tempArr)
        tempArr = []
    }
})

if( tempArr.length > 0 ) {
    requiredArr.push(tempArr)
    tempArr = []
}

export default {
    requiredArr,
    notRequiredArr
};